﻿using AutoMapper;
using Purchase.ApiS.AllCation.Command.MaterialInfos;
using Purchase.ApiS.AllCation.Command.Quality;
using Purchase.ApiS.AllCation.Command.Supplier;
using Purchase.ApiS.AllCation.Hanlder.MaterialInfos;
using Purchase.Domian.Model;

namespace Purchase.ApiS
{
    public class AutoMapperPorfile:Profile
    {
        public AutoMapperPorfile()
        {
            CreateMap<AddQualityCommand, Quality>();
            CreateMap<UpdQualityCommand, Quality>();
            CreateMap<DelQualityCommand, Quality>();
            CreateMap<AddSupplierCommand, SupplierModel>();
            CreateMap<AddSupplierGradeCommand,SupplierGrade>();
            CreateMap<AddPurchaseContractModelCommand, PurchaseContractModel>();
            CreateMap<AddMaterialInfoCommand, MaterialInfo>();
        }
    }
}
